﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class StringExtension
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class StringExtension
   ">
    <meta name="generator" content="docfx 2.48.0.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="../../apicatlog/toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="WQLAPI.Extensions.StringExtension">
  
  
  <h1 id="WQLAPI_Extensions_StringExtension" data-uid="WQLAPI.Extensions.StringExtension" class="text-break">Class StringExtension
  </h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">StringExtension</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="WQLAPI.Extensions.html">WQLAPI.Extensions</a></h6>
  <h6><strong>Assembly</strong>: WQLAPI.dll</h6>
  <h5 id="WQLAPI_Extensions_StringExtension_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class StringExtension</code></pre>
  </div>
  <h3 id="fields">Fields
  </h3>
  
  
  <h4 id="WQLAPI_Extensions_StringExtension_DefaultCryptString" data-uid="WQLAPI.Extensions.StringExtension.DefaultCryptString">DefaultCryptString</h4>
  <div class="markdown level1 summary"><p>默认加密密码</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const string DefaultCryptString = &quot;!@#$%^&amp;*&quot;</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <h4 id="WQLAPI_Extensions_StringExtension_StructLayoutString" data-uid="WQLAPI.Extensions.StringExtension.StructLayoutString">StructLayoutString</h4>
  <div class="markdown level1 summary"><p>结果序列化字符串
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const string StructLayoutString = &quot;[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]&quot;</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  
  
  <a id="WQLAPI_Extensions_StringExtension_After_" data-uid="WQLAPI.Extensions.StringExtension.After*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_After_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.After(System.String,System.String)">After(String, String)</h4>
  <div class="markdown level1 summary"><p>Gets the string after the given string parameter.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string After(this string value, string x)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The default value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">x</span></td>
        <td><p>The given string parameter.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="WQLAPI_Extensions_StringExtension_After_System_String_System_String__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Unlike GetBefore, this method trims the result</p>
</div>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Base64Decode_" data-uid="WQLAPI.Extensions.StringExtension.Base64Decode*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Base64Decode_System_String_" data-uid="WQLAPI.Extensions.StringExtension.Base64Decode(System.String)">Base64Decode(String)</h4>
  <div class="markdown level1 summary"><p>Decodes a Base 64 encoded value to a string using the default encoding.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Base64Decode(this string encodedValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">encodedValue</span></td>
        <td><p>The Base 64 encoded value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>The decoded string</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Base64Decode_" data-uid="WQLAPI.Extensions.StringExtension.Base64Decode*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Base64Decode_System_String_System_Text_Encoding_" data-uid="WQLAPI.Extensions.StringExtension.Base64Decode(System.String,System.Text.Encoding)">Base64Decode(String, Encoding)</h4>
  <div class="markdown level1 summary"><p>Decodes a Base 64 encoded value to a string using the supplied encoding.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Base64Decode(this string encodedValue, Encoding encoding)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">encodedValue</span></td>
        <td><p>The Base 64 encoded value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Text.Encoding</span></td>
        <td><span class="parametername">encoding</span></td>
        <td><p>The encoding.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>The decoded string</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Base64Encode_" data-uid="WQLAPI.Extensions.StringExtension.Base64Encode*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Base64Encode_System_String_" data-uid="WQLAPI.Extensions.StringExtension.Base64Encode(System.String)">Base64Encode(String)</h4>
  <div class="markdown level1 summary"><p>Encodes the input value to a Base64 string using the default encoding.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Base64Encode(this string value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The input value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>The Base 64 encoded string</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Base64Encode_" data-uid="WQLAPI.Extensions.StringExtension.Base64Encode*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Base64Encode_System_String_System_Text_Encoding_" data-uid="WQLAPI.Extensions.StringExtension.Base64Encode(System.String,System.Text.Encoding)">Base64Encode(String, Encoding)</h4>
  <div class="markdown level1 summary"><p>Encodes the input value to a Base64 string using the supplied encoding.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Base64Encode(this string value, Encoding encoding)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The input value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Text.Encoding</span></td>
        <td><span class="parametername">encoding</span></td>
        <td><p>The encoding.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>The Base 64 encoded string</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Before_" data-uid="WQLAPI.Extensions.StringExtension.Before*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Before_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.Before(System.String,System.String)">Before(String, String)</h4>
  <div class="markdown level1 summary"><p>Gets the string before the given string parameter.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Before(this string value, string x)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The default value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">x</span></td>
        <td><p>The given string parameter.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="WQLAPI_Extensions_StringExtension_Before_System_String_System_String__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Unlike GetBetween and GetAfter, this does not Trim the result.</p>
</div>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Between_" data-uid="WQLAPI.Extensions.StringExtension.Between*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Between_System_String_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.Between(System.String,System.String,System.String)">Between(String, String, String)</h4>
  <div class="markdown level1 summary"><p>Gets the string between the given string parameters.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Between(this string value, string x, string y)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The source value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">x</span></td>
        <td><p>The left string sentinel.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">y</span></td>
        <td><p>The right string sentinel</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="WQLAPI_Extensions_StringExtension_Between_System_String_System_String_System_String__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Unlike GetBefore, this method trims the result</p>
</div>
  
  
  <a id="WQLAPI_Extensions_StringExtension_DesDecrypt_" data-uid="WQLAPI.Extensions.StringExtension.DesDecrypt*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_DesDecrypt_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.DesDecrypt(System.String,System.String)">DesDecrypt(String, String)</h4>
  <div class="markdown level1 summary"><p>DES解密</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string DesDecrypt(this string s, string key = &quot;&quot;)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>待解密字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">key</span></td>
        <td><p>密钥</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>解密后的字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_DesEncrypt_" data-uid="WQLAPI.Extensions.StringExtension.DesEncrypt*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_DesEncrypt_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.DesEncrypt(System.String,System.String)">DesEncrypt(String, String)</h4>
  <div class="markdown level1 summary"><p>DES加密</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string DesEncrypt(this string s, string key = &quot;&quot;)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>待加密字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">key</span></td>
        <td><p>密钥</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>加密后的字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_EqualsIgnoreCase_" data-uid="WQLAPI.Extensions.StringExtension.EqualsIgnoreCase*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_EqualsIgnoreCase_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.EqualsIgnoreCase(System.String,System.String)">EqualsIgnoreCase(String, String)</h4>
  <div class="markdown level1 summary"><p>忽略大小写的字符串相等比较，判断是否以任意一个待比较字符串相等</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool EqualsIgnoreCase(this string value, string comparestring)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">comparestring</span></td>
        <td><p>待比较字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>相等比较</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_EqualsIgnoreCase_" data-uid="WQLAPI.Extensions.StringExtension.EqualsIgnoreCase*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_EqualsIgnoreCase_System_String_System_String___" data-uid="WQLAPI.Extensions.StringExtension.EqualsIgnoreCase(System.String,System.String[])">EqualsIgnoreCase(String, String[])</h4>
  <div class="markdown level1 summary"><p>忽略大小写的字符串相等比较，判断是否以任意一个待比较字符串相等</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool EqualsIgnoreCase(this string value, params string[] strs)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span>[]</td>
        <td><span class="parametername">strs</span></td>
        <td><p>待比较字符串数组</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>相等比较</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_FormatString_" data-uid="WQLAPI.Extensions.StringExtension.FormatString*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_FormatString_System_Int32_" data-uid="WQLAPI.Extensions.StringExtension.FormatString(System.Int32)">FormatString(Int32)</h4>
  <div class="markdown level1 summary"><p>浮点数的格式化字符串（例如：0.00）</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string FormatString(this int decimalcount)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">decimalcount</span></td>
        <td><p>小数位数</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_HasCnChar_" data-uid="WQLAPI.Extensions.StringExtension.HasCnChar*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_HasCnChar_System_String_" data-uid="WQLAPI.Extensions.StringExtension.HasCnChar(System.String)">HasCnChar(String)</h4>
  <div class="markdown level1 summary"><p>检测是否有中文字符</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool HasCnChar(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IfEmpty_" data-uid="WQLAPI.Extensions.StringExtension.IfEmpty*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IfEmpty_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IfEmpty(System.String,System.String)">IfEmpty(String, String)</h4>
  <div class="markdown level1 summary"><p>字符串为空时返回缺省值，不为空时直接返回原字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string IfEmpty(this string value, string defaultValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>value</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">defaultValue</span></td>
        <td><p>defaultValue</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsBoolean_" data-uid="WQLAPI.Extensions.StringExtension.IsBoolean*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsBoolean_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsBoolean(System.String)">IsBoolean(String)</h4>
  <div class="markdown level1 summary"><p>是否是布尔字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsBoolean(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsByte_" data-uid="WQLAPI.Extensions.StringExtension.IsByte*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsByte_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsByte(System.String)">IsByte(String)</h4>
  <div class="markdown level1 summary"><p>是否是Byte字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsByte(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsChar_" data-uid="WQLAPI.Extensions.StringExtension.IsChar*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsChar_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsChar(System.String)">IsChar(String)</h4>
  <div class="markdown level1 summary"><p>是否是Char字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsChar(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsDateTime_" data-uid="WQLAPI.Extensions.StringExtension.IsDateTime*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsDateTime_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsDateTime(System.String)">IsDateTime(String)</h4>
  <div class="markdown level1 summary"><p>是否是日期字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsDateTime(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsDecimal_" data-uid="WQLAPI.Extensions.StringExtension.IsDecimal*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsDecimal_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsDecimal(System.String)">IsDecimal(String)</h4>
  <div class="markdown level1 summary"><p>是否是Decima字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsDecimal(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsDouble_" data-uid="WQLAPI.Extensions.StringExtension.IsDouble*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsDouble_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsDouble(System.String)">IsDouble(String)</h4>
  <div class="markdown level1 summary"><p>是否是Double字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsDouble(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsFloat_" data-uid="WQLAPI.Extensions.StringExtension.IsFloat*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsFloat_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsFloat(System.String)">IsFloat(String)</h4>
  <div class="markdown level1 summary"><p>是否是Float字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsFloat(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsGuid_" data-uid="WQLAPI.Extensions.StringExtension.IsGuid*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsGuid_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsGuid(System.String)">IsGuid(String)</h4>
  <div class="markdown level1 summary"><p>是否是Guid字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsGuid(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsInt_" data-uid="WQLAPI.Extensions.StringExtension.IsInt*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsInt_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsInt(System.String)">IsInt(String)</h4>
  <div class="markdown level1 summary"><p>是否是Int字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsInt(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsIP4_" data-uid="WQLAPI.Extensions.StringExtension.IsIP4*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsIP4_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsIP4(System.String)">IsIP4(String)</h4>
  <div class="markdown level1 summary"><p>字符串是否为IP地址</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsIP4(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsLong_" data-uid="WQLAPI.Extensions.StringExtension.IsLong*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsLong_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsLong(System.String)">IsLong(String)</h4>
  <div class="markdown level1 summary"><p>是否是Long字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsLong(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsMail_" data-uid="WQLAPI.Extensions.StringExtension.IsMail*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsMail_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsMail(System.String)">IsMail(String)</h4>
  <div class="markdown level1 summary"><p>检测输入的邮件地址是否合法，非法则返回true。</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsMail(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>邮件</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsNameSpace_" data-uid="WQLAPI.Extensions.StringExtension.IsNameSpace*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsNameSpace_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsNameSpace(System.String)">IsNameSpace(String)</h4>
  <div class="markdown level1 summary"><p>是否是命名空间</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsNameSpace(string str)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">str</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsNullOrEmpty_" data-uid="WQLAPI.Extensions.StringExtension.IsNullOrEmpty*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsNullOrEmpty_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsNullOrEmpty(System.String)">IsNullOrEmpty(String)</h4>
  <div class="markdown level1 summary"><p>指示指定的字符串是 null还是 Empty 字符串。</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsNullOrEmpty(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsNullOrWhiteSpace_" data-uid="WQLAPI.Extensions.StringExtension.IsNullOrWhiteSpace*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsNullOrWhiteSpace_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsNullOrWhiteSpace(System.String)">IsNullOrWhiteSpace(String)</h4>
  <div class="markdown level1 summary"><p>指示指定的字符串是 null、空还是仅由空白字符组成。</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsNullOrWhiteSpace(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsNumber_" data-uid="WQLAPI.Extensions.StringExtension.IsNumber*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsNumber_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsNumber(System.String)">IsNumber(String)</h4>
  <div class="markdown level1 summary"><p>是否数字字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsNumber(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>输入字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsNumberWithSign_" data-uid="WQLAPI.Extensions.StringExtension.IsNumberWithSign*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsNumberWithSign_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsNumberWithSign(System.String)">IsNumberWithSign(String)</h4>
  <div class="markdown level1 summary"><p>是否数字字符串 可带正负号</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsNumberWithSign(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>输入字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsPureEnglishChar_" data-uid="WQLAPI.Extensions.StringExtension.IsPureEnglishChar*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsPureEnglishChar_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsPureEnglishChar(System.String)">IsPureEnglishChar(String)</h4>
  <div class="markdown level1 summary"><p>是否是纯英文字母</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsPureEnglishChar(string str)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">str</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsSByte_" data-uid="WQLAPI.Extensions.StringExtension.IsSByte*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsSByte_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsSByte(System.String)">IsSByte(String)</h4>
  <div class="markdown level1 summary"><p>是否是SByte字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsSByte(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsShort_" data-uid="WQLAPI.Extensions.StringExtension.IsShort*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsShort_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsShort(System.String)">IsShort(String)</h4>
  <div class="markdown level1 summary"><p>是否是Short字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsShort(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsUInt_" data-uid="WQLAPI.Extensions.StringExtension.IsUInt*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsUInt_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsUInt(System.String)">IsUInt(String)</h4>
  <div class="markdown level1 summary"><p>是否是UInt字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsUInt(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsULong_" data-uid="WQLAPI.Extensions.StringExtension.IsULong*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsULong_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsULong(System.String)">IsULong(String)</h4>
  <div class="markdown level1 summary"><p>是否是ULong字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsULong(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsUShort_" data-uid="WQLAPI.Extensions.StringExtension.IsUShort*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsUShort_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsUShort(System.String)">IsUShort(String)</h4>
  <div class="markdown level1 summary"><p>是否是UShort字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsUShort(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_IsValid_" data-uid="WQLAPI.Extensions.StringExtension.IsValid*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_IsValid_System_String_" data-uid="WQLAPI.Extensions.StringExtension.IsValid(System.String)">IsValid(String)</h4>
  <div class="markdown level1 summary"><p>指示指定的字符串是 null还是 Empty 字符串。</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsValid(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Left_" data-uid="WQLAPI.Extensions.StringExtension.Left*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Left_System_String_System_Int32_" data-uid="WQLAPI.Extensions.StringExtension.Left(System.String,System.Int32)">Left(String, Int32)</h4>
  <div class="markdown level1 summary"><p>字符串左侧按长度截取后的字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Left(this string s, int length)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">length</span></td>
        <td><p>长度</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Md5String_" data-uid="WQLAPI.Extensions.StringExtension.Md5String*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Md5String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.Md5String(System.String)">Md5String(String)</h4>
  <div class="markdown level1 summary"><p>使用utf8编码将字符串散列</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Md5String(this string s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>要散列的字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>散列后的字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Middle_" data-uid="WQLAPI.Extensions.StringExtension.Middle*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Middle_System_String_System_Int32_System_Int32_" data-uid="WQLAPI.Extensions.StringExtension.Middle(System.String,System.Int32,System.Int32)">Middle(String, Int32, Int32)</h4>
  <div class="markdown level1 summary"><p>字符串中间按长度截取后的字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Middle(this string s, int start, int length)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">start</span></td>
        <td><p>开始</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">length</span></td>
        <td><p>长度</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_MyDecrypt_" data-uid="WQLAPI.Extensions.StringExtension.MyDecrypt*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_MyDecrypt_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.MyDecrypt(System.String,System.String)">MyDecrypt(String, String)</h4>
  <div class="markdown level1 summary"><p>DES解密</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string MyDecrypt(this string s, string key = &quot;&quot;)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>待解密字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">key</span></td>
        <td><p>密钥</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>解密后的字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_MyEncrypt_" data-uid="WQLAPI.Extensions.StringExtension.MyEncrypt*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_MyEncrypt_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.MyEncrypt(System.String,System.String)">MyEncrypt(String, String)</h4>
  <div class="markdown level1 summary"><p>DES加密</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string MyEncrypt(this string s, string key = &quot;&quot;)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>待加密字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">key</span></td>
        <td><p>密钥</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>加密后的字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_RemoveLeft_" data-uid="WQLAPI.Extensions.StringExtension.RemoveLeft*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_RemoveLeft_System_String_System_Int32_" data-uid="WQLAPI.Extensions.StringExtension.RemoveLeft(System.String,System.Int32)">RemoveLeft(String, Int32)</h4>
  <div class="markdown level1 summary"><p>Return the string with the leftmost number_of_characters characters removed.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string RemoveLeft(this string str, int number_of_characters)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">str</span></td>
        <td><p>The string being extended</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">number_of_characters</span></td>
        <td><p>The number of characters to remove.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_RemoveRight_" data-uid="WQLAPI.Extensions.StringExtension.RemoveRight*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_RemoveRight_System_String_System_Int32_" data-uid="WQLAPI.Extensions.StringExtension.RemoveRight(System.String,System.Int32)">RemoveRight(String, Int32)</h4>
  <div class="markdown level1 summary"><p>Return the string with the rightmost number_of_characters characters removed.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string RemoveRight(this string str, int number_of_characters)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">str</span></td>
        <td><p>The string being extended</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">number_of_characters</span></td>
        <td><p>The number of characters to remove.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Repet_" data-uid="WQLAPI.Extensions.StringExtension.Repet*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Repet_System_String_System_Int32_" data-uid="WQLAPI.Extensions.StringExtension.Repet(System.String,System.Int32)">Repet(String, Int32)</h4>
  <div class="markdown level1 summary"><p>字符串重复显示</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Repet(this string str, int count)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">str</span></td>
        <td><p>The string.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">count</span></td>
        <td><p>The count.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>System.String.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Reverse_" data-uid="WQLAPI.Extensions.StringExtension.Reverse*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Reverse_System_String_" data-uid="WQLAPI.Extensions.StringExtension.Reverse(System.String)">Reverse(String)</h4>
  <div class="markdown level1 summary"><p>字符串反转</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Reverse(this string text)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">text</span></td>
        <td><p>The text.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>System.String.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Right_" data-uid="WQLAPI.Extensions.StringExtension.Right*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Right_System_String_System_Int32_" data-uid="WQLAPI.Extensions.StringExtension.Right(System.String,System.Int32)">Right(String, Int32)</h4>
  <div class="markdown level1 summary"><p>字符串右侧按长度截取后的字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Right(this string s, int length)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">length</span></td>
        <td><p>长度</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_SHA1Hash_" data-uid="WQLAPI.Extensions.StringExtension.SHA1Hash*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_SHA1Hash_System_String_" data-uid="WQLAPI.Extensions.StringExtension.SHA1Hash(System.String)">SHA1Hash(String)</h4>
  <div class="markdown level1 summary"><p>Calculates the SHA1 hash of the supplied string and returns a base 64 string.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string SHA1Hash(this string stringToHash)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">stringToHash</span></td>
        <td><p>String that must be hashed.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>The hashed string or null if hashing failed.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentException</span></td>
        <td><p>Occurs when stringToHash or key is null or empty.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_Split_" data-uid="WQLAPI.Extensions.StringExtension.Split*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_Split_System_String_System_String_System_Boolean_" data-uid="WQLAPI.Extensions.StringExtension.Split(System.String,System.String,System.Boolean)">Split(String, String, Boolean)</h4>
  <div class="markdown level1 summary"><p>分割字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string[] Split(this string s, string separator, bool ignoreEmpty = false)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">separator</span></td>
        <td><p>分隔符</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">ignoreEmpty</span></td>
        <td><p>忽略空字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span>[]</td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_SplitBeforeLast_" data-uid="WQLAPI.Extensions.StringExtension.SplitBeforeLast*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_SplitBeforeLast_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.SplitBeforeLast(System.String,System.String)">SplitBeforeLast(String, String)</h4>
  <div class="markdown level1 summary"><p>以分隔符分割的最后一个字符串之前的字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string SplitBeforeLast(this string s, string separator)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">separator</span></td>
        <td><p>分隔符</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_SplitFirst_" data-uid="WQLAPI.Extensions.StringExtension.SplitFirst*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_SplitFirst_System_String_System_String_System_Boolean_" data-uid="WQLAPI.Extensions.StringExtension.SplitFirst(System.String,System.String,System.Boolean)">SplitFirst(String, String, Boolean)</h4>
  <div class="markdown level1 summary"><p>以分隔符分割后的第一个字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string SplitFirst(this string s, string separator, bool ignoreEmpty = false)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">separator</span></td>
        <td><p>分隔符</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">ignoreEmpty</span></td>
        <td><p>忽略空字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_SplitIndex_" data-uid="WQLAPI.Extensions.StringExtension.SplitIndex*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_SplitIndex_System_String_System_String_System_Int32_System_Boolean_" data-uid="WQLAPI.Extensions.StringExtension.SplitIndex(System.String,System.String,System.Int32,System.Boolean)">SplitIndex(String, String, Int32, Boolean)</h4>
  <div class="markdown level1 summary"><p>返回字符串分割后指定索引的字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string SplitIndex(this string s, string separator, int index, bool ignoreEmpty = false)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">separator</span></td>
        <td><p>分隔符</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td><p>索引</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">ignoreEmpty</span></td>
        <td><p>忽略空字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_SplitLast_" data-uid="WQLAPI.Extensions.StringExtension.SplitLast*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_SplitLast_System_String_System_String_System_Boolean_" data-uid="WQLAPI.Extensions.StringExtension.SplitLast(System.String,System.String,System.Boolean)">SplitLast(String, String, Boolean)</h4>
  <div class="markdown level1 summary"><p>以分隔符分割后的最后一个字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string SplitLast(this string s, string separator, bool ignoreEmpty = false)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">separator</span></td>
        <td><p>分隔符</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">ignoreEmpty</span></td>
        <td><p>忽略空字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_SplitSeparatorCount_" data-uid="WQLAPI.Extensions.StringExtension.SplitSeparatorCount*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_SplitSeparatorCount_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.SplitSeparatorCount(System.String,System.String)">SplitSeparatorCount(String, String)</h4>
  <div class="markdown level1 summary"><p>字符串包含分隔符的个数</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int SplitSeparatorCount(this string s, string separator)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">separator</span></td>
        <td><p>分隔符</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>个数</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToBoolean_" data-uid="WQLAPI.Extensions.StringExtension.ToBoolean*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToBoolean_System_String_System_Boolean_" data-uid="WQLAPI.Extensions.StringExtension.ToBoolean(System.String,System.Boolean)">ToBoolean(String, Boolean)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool ToBoolean(this string s, bool def = false)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToByte_" data-uid="WQLAPI.Extensions.StringExtension.ToByte*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToByte_System_String_System_Byte_" data-uid="WQLAPI.Extensions.StringExtension.ToByte(System.String,System.Byte)">ToByte(String, Byte)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static byte ToByte(this string s, byte def = 0)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Byte</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToChar_" data-uid="WQLAPI.Extensions.StringExtension.ToChar*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToChar_System_String_System_Char_" data-uid="WQLAPI.Extensions.StringExtension.ToChar(System.String,System.Char)">ToChar(String, Char)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static char ToChar(this string s, char def = '\0')</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Char</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Char</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToDateTime_" data-uid="WQLAPI.Extensions.StringExtension.ToDateTime*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToDateTime_System_String_System_DateTime_" data-uid="WQLAPI.Extensions.StringExtension.ToDateTime(System.String,System.DateTime)">ToDateTime(String, DateTime)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static DateTime ToDateTime(this string s, DateTime def = default(DateTime))</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.DateTime</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.DateTime</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToDateTime_" data-uid="WQLAPI.Extensions.StringExtension.ToDateTime*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToDateTime_System_String_System_String_" data-uid="WQLAPI.Extensions.StringExtension.ToDateTime(System.String,System.String)">ToDateTime(String, String)</h4>
  <div class="markdown level1 summary"><p>字符串转换为日期</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static DateTime ToDateTime(this string s, string formatString)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">formatString</span></td>
        <td><p>日期格式</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.DateTime</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToDateTimeEx_" data-uid="WQLAPI.Extensions.StringExtension.ToDateTimeEx*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToDateTimeEx_System_String_System_String_System_DateTime_" data-uid="WQLAPI.Extensions.StringExtension.ToDateTimeEx(System.String,System.String,System.DateTime)">ToDateTimeEx(String, String, DateTime)</h4>
  <div class="markdown level1 summary"><p>字符串转换为日期</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static DateTime ToDateTimeEx(this string s, string formatString, DateTime def = default(DateTime))</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">formatString</span></td>
        <td><p>日期格式，可包含的格式化字符串为：yyyy、yy、MM、dd、HH、mm、ss、fff、：、-、空格</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.DateTime</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认日期</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.DateTime</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToDecimal_" data-uid="WQLAPI.Extensions.StringExtension.ToDecimal*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToDecimal_System_String_System_Decimal_" data-uid="WQLAPI.Extensions.StringExtension.ToDecimal(System.String,System.Decimal)">ToDecimal(String, Decimal)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static decimal ToDecimal(this string s, decimal def = 0M)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Decimal</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Decimal</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToDouble_" data-uid="WQLAPI.Extensions.StringExtension.ToDouble*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToDouble_System_String_System_Double_" data-uid="WQLAPI.Extensions.StringExtension.ToDouble(System.String,System.Double)">ToDouble(String, Double)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double ToDouble(this string s, double def = 0)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToEnBytes_" data-uid="WQLAPI.Extensions.StringExtension.ToEnBytes*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToEnBytes_System_String_System_Int32_" data-uid="WQLAPI.Extensions.StringExtension.ToEnBytes(System.String,System.Int32)">ToEnBytes(String, Int32)</h4>
  <div class="markdown level1 summary"><p>英文字符串转换为ASCII编码的数组</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static byte[] ToEnBytes(this string s, int len)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">len</span></td>
        <td><p>长度</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToEncodeBytes_" data-uid="WQLAPI.Extensions.StringExtension.ToEncodeBytes*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToEncodeBytes_System_String_System_Text_Encoding_" data-uid="WQLAPI.Extensions.StringExtension.ToEncodeBytes(System.String,System.Text.Encoding)">ToEncodeBytes(String, Encoding)</h4>
  <div class="markdown level1 summary"><p>字符串按指定编码转换为数组</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static byte[] ToEncodeBytes(this string dealString, Encoding encode)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">dealString</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Text.Encoding</span></td>
        <td><span class="parametername">encode</span></td>
        <td><p>编码</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToEncodeString_" data-uid="WQLAPI.Extensions.StringExtension.ToEncodeString*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToEncodeString_System_Byte___System_Text_Encoding_" data-uid="WQLAPI.Extensions.StringExtension.ToEncodeString(System.Byte[],System.Text.Encoding)">ToEncodeString(Byte[], Encoding)</h4>
  <div class="markdown level1 summary"><p>数组按指定编码转换为字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string ToEncodeString(this byte[] dealBytes, Encoding encode)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">dealBytes</span></td>
        <td><p>数组</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Text.Encoding</span></td>
        <td><span class="parametername">encode</span></td>
        <td><p>编码</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToEnString_" data-uid="WQLAPI.Extensions.StringExtension.ToEnString*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToEnString_System_Byte___" data-uid="WQLAPI.Extensions.StringExtension.ToEnString(System.Byte[])">ToEnString(Byte[])</h4>
  <div class="markdown level1 summary"><p>ASCII编码的数组转换为英文字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string ToEnString(this byte[] s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Byte</span>[]</td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToFloat_" data-uid="WQLAPI.Extensions.StringExtension.ToFloat*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToFloat_System_String_System_Single_" data-uid="WQLAPI.Extensions.StringExtension.ToFloat(System.String,System.Single)">ToFloat(String, Single)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static float ToFloat(this string s, float def = 0F)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToGuid_" data-uid="WQLAPI.Extensions.StringExtension.ToGuid*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToGuid_System_String_System_Guid_" data-uid="WQLAPI.Extensions.StringExtension.ToGuid(System.String,System.Guid)">ToGuid(String, Guid)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Guid ToGuid(this string s, Guid def = default(Guid))</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Guid</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Guid</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToInt_" data-uid="WQLAPI.Extensions.StringExtension.ToInt*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToInt_System_String_System_Int32_" data-uid="WQLAPI.Extensions.StringExtension.ToInt(System.String,System.Int32)">ToInt(String, Int32)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int ToInt(this string s, int def = 0)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToLong_" data-uid="WQLAPI.Extensions.StringExtension.ToLong*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToLong_System_String_System_Int64_" data-uid="WQLAPI.Extensions.StringExtension.ToLong(System.String,System.Int64)">ToLong(String, Int64)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static long ToLong(this string s, long def = 0L)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToSByte_" data-uid="WQLAPI.Extensions.StringExtension.ToSByte*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToSByte_System_String_System_SByte_" data-uid="WQLAPI.Extensions.StringExtension.ToSByte(System.String,System.SByte)">ToSByte(String, SByte)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static sbyte ToSByte(this string s, sbyte def = 0)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.SByte</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.SByte</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToSecureString_" data-uid="WQLAPI.Extensions.StringExtension.ToSecureString*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToSecureString_System_String_System_Boolean_" data-uid="WQLAPI.Extensions.StringExtension.ToSecureString(System.String,System.Boolean)">ToSecureString(String, Boolean)</h4>
  <div class="markdown level1 summary"><p>Converts a regular string into SecureString</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static SecureString ToSecureString(this string u, bool makeReadOnly = true)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">u</span></td>
        <td><p>String value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">makeReadOnly</span></td>
        <td><p>Makes the text value of this secure string read-only.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Security.SecureString</span></td>
        <td><p>Returns a SecureString containing the value of a transformed object.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToShort_" data-uid="WQLAPI.Extensions.StringExtension.ToShort*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToShort_System_String_System_Int16_" data-uid="WQLAPI.Extensions.StringExtension.ToShort(System.String,System.Int16)">ToShort(String, Int16)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static short ToShort(this string s, short def = 0)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int16</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int16</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToUInt_" data-uid="WQLAPI.Extensions.StringExtension.ToUInt*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToUInt_System_String_System_UInt32_" data-uid="WQLAPI.Extensions.StringExtension.ToUInt(System.String,System.UInt32)">ToUInt(String, UInt32)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static uint ToUInt(this string s, uint def = 0U)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.UInt32</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.UInt32</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToULong_" data-uid="WQLAPI.Extensions.StringExtension.ToULong*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToULong_System_String_System_UInt64_" data-uid="WQLAPI.Extensions.StringExtension.ToULong(System.String,System.UInt64)">ToULong(String, UInt64)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static ulong ToULong(this string s, ulong def = 0UL)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.UInt64</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.UInt64</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToUnSecureString_" data-uid="WQLAPI.Extensions.StringExtension.ToUnSecureString*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToUnSecureString_System_Security_SecureString_" data-uid="WQLAPI.Extensions.StringExtension.ToUnSecureString(System.Security.SecureString)">ToUnSecureString(SecureString)</h4>
  <div class="markdown level1 summary"><p>Coverts the SecureString to a regular string.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string ToUnSecureString(this SecureString s)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Security.SecureString</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>Object value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>Item of secured string.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_ToUShort_" data-uid="WQLAPI.Extensions.StringExtension.ToUShort*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_ToUShort_System_String_System_UInt16_" data-uid="WQLAPI.Extensions.StringExtension.ToUShort(System.String,System.UInt16)">ToUShort(String, UInt16)</h4>
  <div class="markdown level1 summary"><p>字符串转换</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static ushort ToUShort(this string s, ushort def = 0)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">s</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.UInt16</span></td>
        <td><span class="parametername">def</span></td>
        <td><p>默认</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.UInt16</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Extensions_StringExtension_TrimToMaxLength_" data-uid="WQLAPI.Extensions.StringExtension.TrimToMaxLength*"></a>
  <h4 id="WQLAPI_Extensions_StringExtension_TrimToMaxLength_System_String_System_Int32_" data-uid="WQLAPI.Extensions.StringExtension.TrimToMaxLength(System.String,System.Int32)">TrimToMaxLength(String, Int32)</h4>
  <div class="markdown level1 summary"><p>截取指定长度的字符串</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string TrimToMaxLength(this string value, int maxLength)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>字符串</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">maxLength</span></td>
        <td><p>长度</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>结果</p>
</td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
